/*--------------------------------------------------*/
/*VirtualSociety System ServiceModuleTemplate Main File*/
/*CreateBy SRPLab                */
/*CreateDate: 2011-3-29  */
/*--------------------------------------------------*/
#include "SRPSAGGLibEngine_VSHeader.h"

/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*Function SAggImgBrushClass Is Extracted From ScriptFile */
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
#define SAGGIMGBRUSHCLASS_OBJECT_DEPENDINDEX                                                         0x00000001
#define SAGGIMGBRUSHCLASS_C_SETIMG_FUNCRETURN_DEPENDINDEX                                            0X00000002
#define SAGGIMGBRUSHCLASS_C_SETIMG_FUNCPARAM_DEPENDINDEX                                             0X00000003
#define SAGGIMGBRUSHCLASS_SETIMG_FUNCRETURN_DEPENDINDEX                                              0X00000004
#define SAGGIMGBRUSHCLASS_SETIMG_FUNCPARAM_DEPENDINDEX                                               0X00000005
#define SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX                                         0X00000006
#define SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX                                          0X00000007

VS_INT32 SRPCALLBACK SAggImgBrushClass_QueryObjectInfo(VS_OBJECTMODULEINFO *VSObjectModuleInfo)
{
    VSObjectModuleInfo -> ObjectVersion = 0;
    VSObjectModuleInfo -> ObjectSubVersion = 0;
    VSObjectModuleInfo -> ObjcetBugFixVersion = 0;
    VSObjectModuleInfo -> VSVersion = 0;
    VSObjectModuleInfo -> VSSubVersion = 0;

    VSObjectModuleInfo -> CreateTime.wYear = 2011;
    VSObjectModuleInfo -> CreateTime.wMonth = 3;
    VSObjectModuleInfo -> CreateTime.wDay = 29;
    VSObjectModuleInfo -> UpdateTime.wYear = 2011;
    VSObjectModuleInfo -> UpdateTime.wMonth = 3;
    VSObjectModuleInfo -> UpdateTime.wDay = 29;

    strcpy( VSObjectModuleInfo -> AuthorityInfo, "" );
    strcpy( VSObjectModuleInfo -> LicenseInfo, "" );
    strcpy( VSObjectModuleInfo -> ExtendInfo, "" );

    return 0;
}

VS_INT32 SRPCALLBACK SAggImgBrushClass_RequestRegisterObject()
{
    VS_DEPENDATTRIBUTE LocalDependAttribute[512];  /*---set a large number*/
    VS_INT32 DependIndexNumber,DependIndex[64];

    //------register object depend
    VSATTRDEPEND_SAGGIMGBRUSHCLASS(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_OBJECT_DEPENDINDEX,VSOBJID_SAggImgBrushClass,VSMODULEDEPEND_OBJECT,VSATTRDEPENDNUM_SAGGIMGBRUSHCLASS,LocalDependAttribute);

    //------register function depend
    VSFUNCRETURNDEPEND_SAGGIMGBRUSHCLASS_C_SETIMG(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_C_SETIMG_FUNCRETURN_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_C_SetImg,VSMODULEDEPEND_FUNCRETURN,VSFUNCRETURNDEPENDNUM_SAGGIMGBRUSHCLASS_C_SETIMG,LocalDependAttribute);

    VSFUNCPARAMDEPEND_SAGGIMGBRUSHCLASS_C_SETIMG(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_C_SETIMG_FUNCPARAM_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_C_SetImg,VSMODULEDEPEND_FUNCPARA,VSFUNCPARAMDEPENDNUM_SAGGIMGBRUSHCLASS_C_SETIMG,LocalDependAttribute);

    VSFUNCRETURNDEPEND_SAGGIMGBRUSHCLASS_SETIMG(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_SETIMG_FUNCRETURN_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_SetImg,VSMODULEDEPEND_FUNCRETURN,VSFUNCRETURNDEPENDNUM_SAGGIMGBRUSHCLASS_SETIMG,LocalDependAttribute);

    VSFUNCPARAMDEPEND_SAGGIMGBRUSHCLASS_SETIMG(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_SETIMG_FUNCPARAM_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_SetImg,VSMODULEDEPEND_FUNCPARA,VSFUNCPARAMDEPENDNUM_SAGGIMGBRUSHCLASS_SETIMG,LocalDependAttribute);

    VSFUNCRETURNDEPEND_SAGGIMGBRUSHCLASS_OVL_C_CLEAR(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_OVL_C_Clear,VSMODULEDEPEND_FUNCRETURN,VSFUNCRETURNDEPENDNUM_SAGGIMGBRUSHCLASS_OVL_C_CLEAR,LocalDependAttribute);

    VSFUNCPARAMDEPEND_SAGGIMGBRUSHCLASS_OVL_C_CLEAR(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX,VSFUNCID_SAggImgBrushClass_OVL_C_Clear,VSMODULEDEPEND_FUNCPARA,VSFUNCPARAMDEPENDNUM_SAGGIMGBRUSHCLASS_OVL_C_CLEAR,LocalDependAttribute);

    //------object function
    DependIndexNumber = 3;
    DependIndex[0] = SAGGIMGBRUSHCLASS_OBJECT_DEPENDINDEX;
    DependIndex[1] = SAGGIMGBRUSHCLASS_C_SETIMG_FUNCRETURN_DEPENDINDEX;
    DependIndex[2] = SAGGIMGBRUSHCLASS_C_SETIMG_FUNCPARAM_DEPENDINDEX;
    pSRP -> RegisterObjectFunction( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,VSFUNCID_SAggImgBrushClass_C_SetImg,(void *)SAggImgBrushClass_C_SetImg,DependIndexNumber,DependIndex);

    DependIndexNumber = 3;
    DependIndex[0] = SAGGIMGBRUSHCLASS_OBJECT_DEPENDINDEX;
    DependIndex[1] = SAGGIMGBRUSHCLASS_SETIMG_FUNCRETURN_DEPENDINDEX;
    DependIndex[2] = SAGGIMGBRUSHCLASS_SETIMG_FUNCPARAM_DEPENDINDEX;
    pSRP -> RegisterObjectFunction( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,VSFUNCID_SAggImgBrushClass_SetImg,(void *)SAggImgBrushClass_SetImg,DependIndexNumber,DependIndex);

    DependIndexNumber = 3;
    DependIndex[0] = SAGGIMGBRUSHCLASS_OBJECT_DEPENDINDEX;
    DependIndex[1] = SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX;
    DependIndex[2] = SAGGIMGBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX;
    pSRP -> RegisterObjectFunction( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,VSFUNCID_SAggImgBrushClass_OVL_C_Clear,(void *)SAggImgBrushClass_OVL_C_Clear,DependIndexNumber,DependIndex);

    //------object message process
    pSRP -> RegisterQueryObjectInfo( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggImgBrushClass,(void *)SAggImgBrushClass_QueryObjectInfo);

    return 0;
}

